package com.kingwang.training.designpattern.visitor.bo;

/**
 * CEO关注的是工程师的KPI和产品经理的产品数量
 *
 * @author King
 */
public class CeoVisitor implements Visitor {
    @Override
    public void visit(Engineer engineer) {
        System.out.println("工程师: " + engineer.getName() + ", KPI: " + engineer.getKpi());
    }

    @Override
    public void visit(Manager manager) {
        System.out.println("经理: " + manager.getName() + ", KPI: " + manager.getKpi() + ", 新产品数量: " + manager.getProducts());
    }
}
